import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 38917
 * Date: 2025-02-27
 * Time: 22:17
 */
public class ChongZai {
    //在同一个类中定义多个方法：要求不仅可以求2个整数的最大值，还可以求3个小数的最大值？
    public static int addInt(int x,int y){
        return x + y;
    }

    public static double addDouble(double i,double j){
        return i + j;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        int y = in.nextInt();
        double i = in.nextDouble();
        double j = in.nextDouble();

        System.out.println(addInt(x, y));
        System.out.println(addDouble(i, j));
    }
}
